export interface MessageData {
    //消息类型
    type?: MessageType,
    //接收地址
    to?: string,
    //发送者
    sender?: string,
    //数据
    data?: any,

    ext?: any
}
export enum MessageType {
    online = 'online',
    close = 'close',
    msg = 'msg',
    offer = "offer",
    answer = "answer",
    ice="ice",
    ready = "ready",
    active = "active",
    bye = "bye",
}